







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Returns the last item in the view: the item
that would appear last if the view was enumerated.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public T GetLast() |
Visual Basic (Declaration) |
---|
Public Function GetLast As T |
Visual C++ |
---|
public: T GetLast () |
Return Value
The last item in the view.
Remarks
GetLast() takes time O(log N), where N is the number of items in the bag.
Exceptions
Exception | Condition |
---|---|
System..::InvalidOperationException | The view has no items in it. |
See Also
Wintellect.PowerCollections Namespace